package com.lagou.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * created by kirito at 2020/7/12
 */
@FeignClient(value = "lagou-service-code")
@RequestMapping("/api")
public interface AuthCodeFeignClient {

    @GetMapping("/code/validate/{email}/{code}")
    int validateCode(@PathVariable(value = "email") String email,
                          @PathVariable(value = "code") String code);
}
